package com.android.forecast.juhe;

import java.util.List;

public class HourlyBean {
    /**
     * "showapi_res_code": 0
     * "showapi_res_error": ""
     * "showapi_res_id":"ce135f6739294c63be0c021b76b6fbff"
     * "showapi_res_body": {
     * 		"ret_code": 0,
     * 		"area": "上海",
     * 		"areaid": "",
     *       	"areaCode":"310000",
     * 		"hourList": [
     *                        {
     * 				"weather_code": "01",
     * 				"time": "201611061000",
     * 				"wind_direction": "东风",
     * 				"wind_power": "4-5级 8.0~10.7m/s",
     * 				"weather": "多云",
     * 				"temperature": "21"
     *            },
     *            {
     * 				"weather_code": "01",
     * 				"time": "201611060900",
     * 				"wind_direction": "东风",
     * 				"wind_power": "3-4级 5.5~7.9m/s",
     * 				"weather": "多云",
     * 				"temperature": "19"
     *            }
     * 		]
     * 	}
     * }
     */

    private int showapi_eres_code;
    private String showapi_res_error;
    private String showapi_res_id;
    private HourlyBean.ResultBean showapi_res_body;

    public int getcode() {
        return showapi_eres_code;
    }

    public void setcode(int showapi_eres_code) {
        this.showapi_eres_code = showapi_eres_code;
    }

    public HourlyBean.ResultBean getbody() {
        return showapi_res_body;
    }

    public void setbody(HourlyBean.ResultBean showapi_res_body) {
        this.showapi_res_body = showapi_res_body;
    }

    public String geterror() {
        return showapi_res_error;
    }

    public void seterror(String showapi_res_error) {
        this.showapi_res_error = showapi_res_error;
    }
    public String getid(){return showapi_res_id;}
    public void setid(String showapi_res_id){this.showapi_res_id=showapi_res_id;}

    public static class ResultBean {
        /**
         * city : 沈阳
         * realtime : {"temperature":"-3","humidity":"24","info":"晴","wid":"00","direct":"西南风","power":"2级","aqi":"34"}
         * future : [{"date":"2020-12-25","temperature":"-15/-3℃","weather":"晴","wid":{"day":"00","night":"00"},"direct":"西南风转东北风"},{"date":"2020-12-26","temperature":"-10/2℃","weather":"多云","wid":{"day":"01","night":"01"},"direct":"东南风"},{"date":"2020-12-27","temperature":"-15/-2℃","weather":"多云转晴","wid":{"day":"01","night":"00"},"direct":"北风"},{"date":"2020-12-28","temperature":"-18/-7℃","weather":"晴转多云","wid":{"day":"00","night":"01"},"direct":"北风"},{"date":"2020-12-29","temperature":"-22/-12℃","weather":"多云转晴","wid":{"day":"01","night":"00"},"direct":"西北风"}]
         */

        private int ret_code;
        private String area;
        private String aid;
        private String acode;
        private List<HourlyBean.ResultBean.HourlistBean> hourlist;
        public int getretcode() {
            return ret_code;
        }

        public void setretcode(int retcode) {
            this.ret_code = retcode;
        }
        public String getarea() {
            return area;
        }
        public void setarea(String area) {
            this.area = area;
        }
        public String getaid() {
            return aid;
        }
        public void setaid(String aid) {this.aid = aid;}
        public String getcode() {
            return acode;
        }
        public void setacode(String acode) {
            this.acode = acode;
        }
        public List<HourlyBean.ResultBean.HourlistBean> gethourlist() {
            return hourlist;
        }

        public void sethourlist(List<HourlyBean.ResultBean.HourlistBean> hourlist) {
            this.hourlist = hourlist;
        }

        public static class HourlistBean {
            /**
             * "weather_code": "01"
             * "time": "201611061000"
             * "wind_direction": "东风"
             * "wind_power": "4-5级 8.0~10.7m/s"
             * "weather": "多云"
             * "temperature": "21"
             */

            private String weathercode;
            private String time;
            private String windirection;
            private String win_power;
            private String weather;
            private String temperature;

            public String getweathercode() {
                return weathercode;
            }

            public void setweathercode(String weathercode) {
                this.weathercode = weathercode;
            }

            public String gettime() {
                return time;
            }

            public void settime(String time) {
                this.time = time;
            }

            public String getwindirection() {
                return windirection;
            }

            public void setwindirection(String windirection) {
                this.windirection = windirection;
            }
            public String getwin_power() {
                return win_power;
            }
            public void setwin_power(String win_power) {
                this.win_power = win_power;
            }
            public String getweather() {
                return weather;
            }
            public void setweather(String weather) {
                this.weather = weather;
            }
            public String gettemperature() {
                return temperature;
            }
            public void settemperature(String temperature) {
                this.temperature = temperature;
            }
        }
    }
}
